<template>
    <div class="logo" >
        <a-icon
            type="codepen-circle" theme="filled"
            style="font-size: 45px;color: white;"
        />
        <div class="name" v-show="collapsed==false">
            {{siteTitle}}
        </div>
    </div>
</template>

<script>
    export default {
        name: "Logo",
        props: {
            collapsed: Boolean,
        },
        data() {
            return {
                siteTitle: process.env.VUE_APP_SITE_TITLE,
            }
        }
    }
</script>

<style scoped>
    .logo {
        height: 64px;
        padding: 16px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: .2s;
    }

    .name{
        font-size: 23px;
        color: white;
        margin-left: 10px;
        transition: .2s;
    }
</style>
